<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE HTML>

<html lang="es">

<head>

	<meta charset="utf-8"/>
	<title>Fechas de Inasistencia</title>
	<meta name="description" content="Sistema Universitario de Autogestion"/>
	<meta name="keywords" content="universidad autogestion ale arce gonzalo ulla"/>
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resources/css/iniciarSesion.css"/>
	<link rel="shortcut icon" href="<%=request.getContextPath()%>/resources/imagenes/favicon.ico" type="image/x-icon"/>
	<link rel="icon" href="<%=request.getContextPath()%>/resources/imagenes/favicon.ico" type="image/ico"/>

</head>

<body>
		<div class="contenedorTabla">
		    <div class="contenedorFila">
		        <div class="contenedorColumna">Fecha</div>
		        <div class="contenedorColumna">Presencia</div>
		    </div>

			<c:forEach items="${insc.curso.clases}" var="clase">
				<div class="contenedorFila">
					<div class="contenedorColumna">${clase.fecha}</div>
					<div class="contenedorColumna">
					<c:choose>
						<c:when test="${clase.presente}">
							<figure>
								<img src="<%=request.getContextPath()%>/resources/imagenes/true.png"/>
							</figure>
						</c:when>
						<c:otherwise>
							<figure>
								<img src="<%=request.getContextPath()%>/resources/imagenes/false.png"/>
							</figure>
						</c:otherwise>
					</c:choose>
					</div>
				</div>
			</c:forEach>
			<!-- Tantos div filas como materias en curso -->
		</div>
	
	<%@ include file="footer.jsp" %>
</body>

</html>